<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 * //积分表
 */
class Score extends AppModel
{
    //
    const IS_STATUS_ONE = 1; //c采集
    const IS_STATUS_TWO = 2; //整改


    public function collect(){
        return $this->belongsTo(Collect::class,'collect_id');
    }

    public function admin(){
        return $this->belongsTo(Admins::class,'admin_id')->field('id,username,unit_id');
    }
}
